package tothreedesignmodel.decorator;

/**
 * @Author lzhphantom
 * @Description
 * @Date 创建于 14:16 2020/7/24
 * @Modified
 */
public class ConcreteDecorator extends Decorator {
    public ConcreteDecorator(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        super.operation();
        addedFunction();
    }

    public void addedFunction() {
        System.out.println("add");
    }
}
